package edu.sctu.practice.class02.zhaozhongjun.test12;

/**
 * Created by 赵中军 on 2015/10/19.
 */
public class Car {
    public int tires;
    public String color;
    public String weight;

    public void tires(int tires){
         this.tires =tires;
         System.out.println("这部车的轮胎个数有："+tires);
     }
    public void color(String color){
        this.color =color;
        System.out.println("车的颜色："+color);
    }
    public void weight(String weight){
       this.weight =weight;
        System.out.println("车身重量:"+weight);
    }
  public void upspeed(){

      System.out.println("可以加速");
  }
  public void downspeed(){

      System.out.println("可以减速");
  }
    public void park(){

        System.out.println("可以停车");
    }
}
